package com.ciaj.module.sys.entity.po;

import com.ciaj.base.bean.SupperEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <p>
* 系统-菜单 Gen Entity
* </p>
*
* @author ciaj.
* @since 2020-08-14
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SysMenu对象", description="系统-菜单")
public class SysMenu extends SupperEntity<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "name")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "父级")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "父节点集合")
    @TableField("parent_ids")
    private String parentIds;

    @ApiModelProperty(value = "菜单url")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "权限码")
    @TableField("permission_code")
    private String permissionCode;

    @ApiModelProperty(value = "类型：0目录   1菜单   2按钮")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "排序")
    @TableField("sequence")
    private Integer sequence;

    @ApiModelProperty(value = "是否启用：Y/N")
    @TableField("enabled")
    private String enabled;


}
